<script setup>
import { ref } from 'vue'

const visible = ref(false)
const data = ref()

const open = (value) => {
    data.value = value
    visible.value = true
}

const close = () => {
    visible.value = false
    data.value = {}
}

//把方法暴露给父组件
defineExpose({
    open
})
</script>

<template>
    <el-dialog v-model="visible" title="详情" center  @close="close" destroy-on-close>
        <section>

        </section>
    </el-dialog>
</template>
